I've had people reaching out to me that their keyboard extensions started disappearing in iOS 17. As I investigated one, I found that using "se." (Swedish top domain) as bundle identifier prefix causes the keyboard to disappear.
I wrote more about this issue here, and have reported it to the Feedback Assistant:
https://keyboardkit.com/blog/2024/02/12/keyboards-disappear-in-ios-17
Post
Replies
Boosts
Views
Activity
Does this approach still work for you? I try it on a tvOS 17 simulator, and it always resets to the first item, even if I say that the default focus index should be 2.
@MaksGal This unfortunately doesn't work in iOS 16 and later. If anyone finds a solution, I'd love to hear about it.
In extension's Info.plist file, you have a "PrimaryLanguage" key under "NSExtension/NSExtensionAttributes".
If you set this to "mul", the extension will display "Multiple languages" instead of English.
It will however not show the current locale.
I thought I had the same problem in Xcode 12.0.1, where I updated a @State property without anything happening.
I then added some print-outs and found the problem to be even more bizarre than the UI not updating. I fetched data from an external api, decoded it and set the optional state to the result, but when I printed the non-nil state value in didSet, the value was printed as nil.
So, the @State property value didn't even seem to get applied, even though I set it to a non-nil value.
I then replaced @State with an @ObservableObject and got some interesting prints that @State didn't provide. It turned out that I wasn't performing the network completion on the main queue, which the observable object clearly printed out wasn't allowed.
After adjusting the code so the completion was performed on the main queue, everything started working, but the @State didSet still printed nil.